<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<%@include file="/common/head.jsp" %>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <form action="${ctx }/admin/employee/save?id=${n.id}" id="detail-form" class="form-horizontal" method="post">
        <div class="form-group">
            <!-- 用户ID -->
            <input type="hidden" id="user-id" name="user.id" value="${n.user.id }" class="form-control">
            <%--<label class="col-sm-2 control-label">用户ID</label>
            <div class="col-sm-4">
                <input type="hidden" id="user-id" name="user.id" value="${n.user.id }" class="form-control">
                <input type="text"  placeholder="请选择用户ID" class="form-control"  id="user-name" name="user.username" value="${n.user.id}"
                       onclick="bring({
                               url:'${ctx}/admin/user/search',
                               name: 'username',
                               idInput: 'user-id',
                               nameInput: 'user-name'
                               })" />--%>
            <label class="col-sm-2 control-label">工作部门</label>
            <div class="col-sm-4">
                <input type="hidden" id="department-id" name="department.id" value="${n.department.id }" class="form-control">
                <input type="text"  placeholder="请选择部门" class="form-control"  id="department-name" name="department.name" value="${n.department.id}"
                       onclick="bring({
                               url:'${ctx}/admin/department/search',
                               name: 'name',
                               idInput: 'department-id',
                               nameInput: 'department-name'
                               })" />
            </div>

            <!-- 岗位 -->
            <label class="col-sm-2 control-label">岗位</label>
            <div class="col-sm-4">
                <!--<input type="text" class="form-control" name="position" value="${n.position }">-->
                <select  name="position">
                    <option value ="JAVA" >JAVA</option>
                    <option value ="前端" >前端</option>
                    <option value="安卓"  >安卓</option>
                    <option value="产品"  >产品</option>
                </select>
            </div>
        </div>
        <div class="form-group">

            <!-- 姓名 -->
            <label class="col-sm-2 control-label">姓名</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="name" value="${n.name }">
            </div>

            <!-- 出生日期 -->
            <label class="col-sm-2 control-label">出生日期</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="birth" value="<fmt:formatDate value='${n.birth }' pattern='yyyy-MM-dd'/>" onclick="laydate({format: 'YYYY-MM-DD'})">
            </div>
        </div>
        <div class="form-group">

            <!-- 性别 -->
            <label class="col-sm-2 control-label">性别</label>
            <div class="col-sm-4">
                <!-- <input type="text" class="form-control" name="sex" value="${n.sex }">-->
                <input type="radio" name="sex" value="1">男</input>
                <input type="radio" name="sex" value="0">女</input>
            </div>

            <!-- 身高 -->
            <label class="col-sm-2 control-label">身高</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="height" value="${n.height }">
            </div>
        </div>
        <div class="form-group">

            <!-- 体重 -->
            <label class="col-sm-2 control-label">体重</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="weight" value="${n.weight }">
            </div>

            <!-- 籍贯 -->
            <label class="col-sm-2 control-label">籍贯</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="place" value="${n.place }">
            </div>
        </div>
        <div class="form-group">

            <!-- 民族 -->
            <label class="col-sm-2 control-label">民族</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="nation" value="${n.nation }">
            </div>

            <!-- 联系电话 -->
            <label class="col-sm-2 control-label">联系电话</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="phone" value="${n.phone }">
            </div>
        </div>
        <div class="form-group">

            <!-- 身份证号 -->
            <label class="col-sm-2 control-label">身份证号</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="IDCard" value="${n.IDCard }">
            </div>

            <!-- 毕业学校 -->
            <label class="col-sm-2 control-label">毕业学校</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="school" value="${n.school }">
            </div>
        </div>
        <div class="form-group">

            <!-- 专业 -->
            <label class="col-sm-2 control-label">专业</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="major" value="${n.major }">
            </div>

            <!-- 学历 -->
            <label class="col-sm-2 control-label">学历</label>
            <div class="col-sm-4">
                <!-- <input type="text" class="form-control" name="education" value="${n.education }">-->
                <select  name="education">
                    <option value ="0" >高中</option>
                    <option value ="1" >本科</option>
                    <option value="2"  >硕士</option>
                    <option value="3"  >博士</option>
                </select>
            </div>
        </div>
        <div class="form-group">

            <!-- 户口所在地 -->
            <label class="col-sm-2 control-label">户口所在地</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="location" value="${n.location }">
            </div>

            <!-- 居住地址 -->
            <label class="col-sm-2 control-label">居住地址</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="address" value="${n.address }">
            </div>
        </div>
        <div class="form-group">

            <!-- 微信号 -->
            <label class="col-sm-2 control-label">微信号</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="wechat" value="${n.wechat }">
            </div>

            <!-- 邮箱 -->
            <label class="col-sm-2 control-label">邮箱</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="email" value="${n.email }">
            </div>
        </div>
        <div class="form-group">

            <!-- 婚姻状况 -->
            <label class="col-sm-2 control-label">婚姻状况</label>
            <div class="col-sm-4">
                <!--  <input type="text" class="form-control" name="marry" value="${n.marry }">
                <input type="radio" name="marry" value="1">未婚</input>
                 <input type="radio" name="marry" value="2">已婚</input>
                 <input type="radio" name="marry" value="0">离异</input>-->
                <select  name="marry">
                    <option value ="0" >未婚</option>
                    <option value ="1" >已婚</option>
                    <option value="2"  >离异</option>
                </select>
            </div>

            <!-- 入职时间 -->
            <label class="col-sm-2 control-label">入职时间</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="inTime" value="<fmt:formatDate value='${n.inTime }' pattern='yyyy-MM-dd'/>" onclick="laydate({format: 'YYYY-MM-DD'})">
            </div>
        </div>
        <%--<div class="form-group">

        <!-- 员工状态/1.录用/2.停职 -->
        <label class="col-sm-2 control-label">员工状态</label>
        <div class="col-sm-4">
            <select  name="status">
                <option value ="0" >入职</option>
                <option value ="1" >转正</option>
                <option value="2"  >离职</option>
            </select>
        </div>
    </div>--%>





    <p align="center"><font size="4" color="coral" face="楷体">紧急联系人信息</font></p>
        <div class="form-group">
            <!-- 员工ID -->
            <%--<label class="col-sm-2 control-label">员工ID</label>--%>
            <%-- <div class="col-sm-4">--%>
            <input type="hidden" id="employee-id" name="employee.id" value="${userId }" class="form-control">
            <%--<input type="text"  placeholder="请选择员工ID" class="form-control" id="employee-name" value="${n.employee.name}"
                onclick="bring({
                                    url:'${ctx}/admin/employee/search',
                                    name: 'name',
                                    idInput: 'employee-id',
                                    nameInput: 'employee-name'
                                    })" />--%>

            <%-- </div>--%>

            <!-- 姓名 -->
            <label class="col-sm-2 control-label">姓名</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="employee.contartName" value="${emergency.emname }">
            </div>
        </div>
        <div class="form-group">

            <!-- 关系 -->
            <label class="col-sm-2 control-label">关系</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="employee.contartRelation" value="${emergency.relation }">
            </div>

            <!-- 联系电话 -->
            <label class="col-sm-2 control-label">联系电话</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="employee.contartPhone" value="${emergency.emphone }">
            </div>
        </div>
        <div class="form-group">

            <!-- 单位或住址 -->
            <label class="col-sm-2 control-label">单位或住址</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="employee.contartAddress" value="${emergency.emaddress }">
            </div>

        </div>





    <p align="center"><font size="4" color="coral" face="楷体">教育信息</font></p>
        <div class="form-group">
            <!-- 员工ID -->
            <%--  <label class="col-sm-2 control-label">员工ID</label>--%>
            <%--<div class="col-sm-4">--%>
            <input type="hidden" id="employee-id" name="employee.id" value="${userId}" class="form-control">
            <%--<input type="text"  placeholder="请选择员工ID" class="form-control" id="employee-name" name="employee.name" value="${n.employee.name }"
                onclick="bring({
                                    url:'${ctx}/admin/employee/search',
                                    name: 'name',
                                    idInput: 'employee-id',
                                    nameInput: 'employee-name'
                                    })" />--%>

            <%-- </div>--%>

            <!-- 学习起始时间 -->
            <label class="col-sm-2 control-label">学习起始时间</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="start" value="<fmt:formatDate value='${education.start }' pattern='yyyy-MM-dd'/>" onclick="laydate({format: 'YYYY-MM-DD'})">
            </div>
        </div>
        <div class="form-group">

            <!-- 学习结束时间 -->
            <label class="col-sm-2 control-label">学习结束时间</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="end" value="<fmt:formatDate value='${education.end }' pattern='yyyy-MM-dd'/>" onclick="laydate({format: 'YYYY-MM-DD'})">
            </div>

            <!-- 专业 -->
            <label class="col-sm-2 control-label">专业</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="edmajor" value="${education.edmajor }">
            </div>
        </div>
        <div class="form-group">

            <!-- 学历 -->
            <label class="col-sm-2 control-label">学历</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="record" value="${education.record }">
            </div>

            <!-- 证书 -->
            <label class="col-sm-2 control-label">证书</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="certificate" value="${education.certificate }">
            </div>
        </div>
        <div class="form-group">

        </div>



    <p align="center"><font size="4" color="coral" face="楷体">工作经历</font></p>

        <div class="form-group">
            <!-- 员工ID -->
            <%-- <label class="col-sm-2 control-label">员工ID</label>--%>
            <%-- <div class="col-sm-4">--%>
            <input type="hidden" id="employee-id" name="employee.id" value="${userId }" class="form-control">
            <%--<input type="text"  placeholder="请选择员工ID" class="form-control" id="employee-name" value="${n.employee.name }"
                onclick="bring({
                                    url:'${ctx}/admin/employee/search',
                                    name: 'name',
                                    idInput: 'employee-id',
                                    nameInput: 'employee-name'
                                    })" />--%>

            <%-- </div>--%>

            <!-- 离职原因 -->
            <label class="col-sm-2 control-label">离职原因</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="reason" value="${experience.reason }">
            </div>
        </div>
        <div class="form-group">

            <!-- 单位 -->
            <label class="col-sm-2 control-label">单位</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="company" value="${experience.company }">
            </div>

            <!-- 工作 -->
            <label class="col-sm-2 control-label">工作</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="work" value="${experience.work }">
            </div>
        </div>
        <div class="form-group">

            <!-- 职位 -->
            <label class="col-sm-2 control-label">职位</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="position1" value="${experience.position1 }">
            </div>

            <!-- 工作起始时间 -->
            <label class="col-sm-2 control-label">工作起始时间</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="exstart" value="<fmt:formatDate value='${experience.exstart }' pattern='yyyy-MM-dd'/>" onclick="laydate({format: 'YYYY-MM-DD'})">
            </div>
        </div>
        <div class="form-group">

            <!-- 工作结束时间 -->
            <label class="col-sm-2 control-label">工作结束时间</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="exend" value="<fmt:formatDate value='${experience.exend }' pattern='yyyy-MM-dd'/>" onclick="laydate({format: 'YYYY-MM-DD'})">
            </div>

        </div>






    <p align="center"><font size="4" color="coral" face="楷体">家庭成员信息</font></p>

        <div class="form-group">
            <!-- 员工ID -->
            <%--<label class="col-sm-2 control-label">员工ID</label>--%>
            <%--<div class="col-sm-4">--%>
            <input type="hidden" id="employee-id" name="employee.id" value="${userId}" class="form-control">
            <%--<input type="text"  placeholder="请选择员工ID" class="form-control" id="employee-name" value="${n.employee.name }"
                onclick="bring({
                                    url:'${ctx}/admin/employee/search',
                                    name: 'name',
                                    idInput: 'employee-id',
                                    nameInput: 'employee-name'
                                    })" />--%>

            <%-- </div>--%>

            <!-- 姓名 -->
            <label class="col-sm-2 control-label">姓名</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="faname" value="${family.faname }">
            </div>
        </div>
        <div class="form-group">

            <!-- 关系 -->
            <label class="col-sm-2 control-label">关系</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="farelation" value="${family.farelation }">
            </div>

            <!-- 联系方式 -->
            <label class="col-sm-2 control-label">联系方式</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="contact" value="${family.contact }">
            </div>
        </div>
        <div class="form-group">

            <!-- 年龄 -->
            <label class="col-sm-2 control-label">年龄</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="age" value="${family.age }">
            </div>

            <!-- 工作单位 -->
            <label class="col-sm-2 control-label">工作单位</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="facompany" value="${family.facompany }">
            </div>
        </div>
        <div class="form-group">

            <!-- 职位 -->
            <label class="col-sm-2 control-label">职位</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" name="position2" value="${family.position2 }">
            </div>

        </div>

    </form>

</div>
<%@include file="/common/foot.jsp" %>

</body>
</html>
